﻿@{
    ViewBag.Title = "eStudying - Nosso objetivo é fazer você atingir os seus objetivos.";
    Layout = "~/Views/eStudying/Master.cshtml";
}
<div class="main">
    <div class="home ">
        <div class="homeBanner border">
            <img src="Images/img01.jpg" height="305px" width="1300px" />
        </div>
        @{
            List<eStudying.Core.Objects.Article> articleList = (List<eStudying.Core.Objects.Article>)ViewData["Articles"];
            
            <div class="homeBox border">
                <h1>
                    Mais Vistos</h1>
                <ul>
                    @foreach (var article in articleList)
                    { 
                        <li>@Html.ActionLink(@article.Title, "ShowArticle", new { id = article.Id }) </li>;
                    }
                </ul>
            </div>
            <div class="homeBox border">
                <h1>
                    Recomendados</h1>
                <ul>
                    @foreach (var article in articleList)
                    { 
                        <li idArticle="@article.Id">@article.Title </li>;
                    }
                </ul>
            </div>
            <div class="homeBox border">
                <h1>
                    Melhores Avaliados</h1>
                <ul>
                    @foreach (var article in articleList)
                    { 
                        <li idArticle="@article.Id">@article.Title </li>;
                    }
                </ul>
            </div>        
        }
        <div class="homeBox border">
            <h1>
                Próximos Vestibulares</h1>
            <ul>
                <li>CONTEUDO</li>
                <li>CONTEUDO</li>
                <li>CONTEUDO</li>
                <li>CONTEUDO</li>
                <li>CONTEUDO</li>
                <li>CONTEUDO</li>
                <li>CONTEUDO</li>
                <li>CONTEUDO</li>
                <li>CONTEUDO</li>
                <li>CONTEUDO</li>
            </ul>
        </div>
    </div>
</div>
